package com.silence.springboot.vo.input;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

@Data
@Accessors(chain = true)
@Schema(name = "SetRolesInput", description = "设置角色")
public class SetRolesInput implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    @NotBlank(message = "用户id不能为空")
    @Schema(name = "userId", description = "用户id")
    private String userId;

    /**
     * 角色id列表
     */
    @NotNull(message = "角色id列表不能为空")
    @Schema(name = "roleIds", description = "角色id列表")
    private List<String> roleIds;

}
